package com.example.repository;

import com.example.entity.Collection;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface CollectionRepository extends JpaRepository<Collection, String> {

    List<Collection> findByUserId(String userId);
    Collection findByUserIdAndSentenceId(String userId, String sentenceId);
    Collection findByUserIdAndTopicId(String useId, String topicId);
}
